import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
import Home from '../components/Home/Home.vue'
import Vip from '../components/vip/vip.vue'
import Cart from '../components/cart/cart.vue'
import Search from '../components/search/search.vue'


import NewsList from '../components/news/List.vue'
import NewsInfo from '../components/news/Info.vue'


import PhotoList from '../components/photo/List.vue'
import PhotoInfo from '../components/photo/Info.vue'

var router = new VueRouter({
    routes:[
        {path: '/', redirect: '/home'},
        {path: '/home', component: Home},
        { path: '/vip', component: Vip },
        { path: '/cart', component: Cart },
        { path: '/search', component: Search },

        { path: '/home/photolist', component: PhotoList },
        { path: '/home/photoinfo/:id', component: PhotoInfo },
        { path: '/home/newslist', component: NewsList },
        { path: '/home/newsinfo/:id', component: NewsInfo },
    ],
    linkActiveClass:'mui-active'
});
export  default router